import 'package:json_annotation/json_annotation.dart';

part 'comic_dayqd_model.g.dart';

@JsonSerializable()
class ComicDayqdModel {
  final String? id;
  // final String? createTime;
  final int? day;
  final double? reward;
  final int? level;
  bool isChecked = false;

  ComicDayqdModel({
    this.id,
    this.day,
    this.reward,
    this.level,
    this.isChecked = false,
  });

  ComicDayqdModel copyWith({
    String? id,
    int? day,
    double? reward,
    int? level,
    bool? isChecked,
  }) {
    return ComicDayqdModel(
      id: id ?? this.id,
      day: day ?? this.day,
      reward: reward ?? this.reward,
      level: level ?? this.level,
      isChecked: isChecked ?? this.isChecked,
    );
  }

  factory ComicDayqdModel.fromJson(Map<String, dynamic> json) =>
      _$ComicDayqdModelFromJson(json);

  Map<String, dynamic> toJson() => _$ComicDayqdModelToJson(this);
}
